package com.eigaland.change_machine.business.movelistfullscreen

import androidx.lifecycle.MutableLiveData
import com.eigaland.change_machine.business.movielist.MovieListFragmentVM
import com.eigaland.change_machine.business.movielist.MovieListItemVM
import com.eigaland.change_machine.business.movielist.MovieListVM
import com.eigland.eigaland_lib.base.BaseVM
import movie6.posprintercept2.extensions.customLaunch

public class MovieListFullScreenFragmentVM : BaseVM(){
    var movieListItems = MutableLiveData<ArrayList<List<MovieListItemVM>>>()

    var repository = MovieFullScreenFragmentRepository()

    var successMessage = MutableLiveData<String>()

    override fun initData() {
        progressLoadingStatus.postValue(true)
        customLaunch({
            var result = repository.getMovieList()
            movieListItems.postValue(result.movieList)
            progressLoadingStatus.postValue(false)

        },{

        })
    }

    override fun destroy() {

    }

    override fun saveData() {

    }

    override fun onResume() {

    }

}